import org.junit.jupiter.api.Assertions;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class NGuessNumberTest {
    private static NGuessNumber guoyuxuan = new NGuessNumber();
    @org.junit.jupiter.api.Test
    void generateAnswerTest() {
        //测试通过
        assertEquals(4, guoyuxuan.generateAnswer().size());
    }
    @org.junit.jupiter.api.Test
    void getPlayerInputTest() {
        //测试通过
        Assertions.assertEquals(4, guoyuxuan.getPlayerInput().length);
    }
    @org.junit.jupiter.api.Test
    void compareGuessAnswerTest() {
        //测试通过
        Assertions.assertEquals(true, guoyuxuan.compareGuessAnswer());
    }
}
